import { constantRoutes } from '@/router'
const state = {
  routes: []
}
const mutations = {
  setRoute(state, otherRoutes) {
    state.routes = [
      ...constantRoutes,
      ...otherRoutes
    ]
    // console.log(state.routes)
  }
}
const actions = {}
const getters = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
